-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(stack-client): Get Icon Url uses preloaded url when oAuth not needed #1134
Conversation
1f7a7ea
to
98ab044
Compare
defaultOpts.appData = 'appData-that-is-a-string' | ||
const url = await getIconURL(stackClient, defaultOpts) | ||
expect(url).toEqual( | ||
'http://cozy.tools:8080/registry/appData-that-is-a-string/icon' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Crash-- : I wonder if this appData that can be string is possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nein. I don't think so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code + test have been removed
98ab044
to
e9bd7ea
Compare
} else { | ||
try { | ||
const { host: domain, protocol } = new URL(stackClient.uri) | ||
return loadIcon(appData, domain, protocol) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appData
now mandatory to be able to be executed simply => https://github.com/cozy/cozy-ui/pull/2064/files
Need upgrade in cozy-ui as well + test + working without breaking change
cozy/cozy-ui#2064